package org.example.myleet.p400;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(3 == solution.findNthDigit(3));
        Assert.isTrue(0 == solution.findNthDigit(11));
        Assert.isTrue(5 == solution.findNthDigit(21));
        Assert.isTrue(9 == solution.findNthDigit(189));
        Assert.isTrue(6 == solution.findNthDigit(1530));
        Assert.isTrue(9 == solution.findNthDigit(2887));
        Assert.isTrue(9 == solution.findNthDigit(2888));
        Assert.isTrue(9 == solution.findNthDigit(2889));
        Assert.isTrue(1 == solution.findNthDigit(1000000000));
        Assert.isTrue(2 == solution.findNthDigit(2147483647));
    }
}
